<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use admin\assets\AppAsset;
AppAsset::register($this);

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="content-type" "no-cache">
    <link rel="stylesheet" href="/static/css/font-awesome.min.css">

    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title); ?></title>
    <?php $this->head() ?>
    <!--    <script type="text/javascript" src="/static/js/jquery-1.11.1.min.js"></script> -->

</head>
<body>
<!-- 布局容器 -->
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-main">
            <div class="top-left">
                <!-- logo -->
                <a href="javascript:;" class="logo"><?php echo WEB_TITLE; ?>后台管理系统</a>
                <a href="javascript:;" class="menu-flexible ml10">
                    <i class="fa fa-home" aria-hidden="true" style="font-size:18px;"></i>
                </a>
            </div>
            <!-- 头部右侧操作 -->
            <ul class="layui-nav operate">
                <li class="layui-nav-item">
                    <!-- 进入商城首页    -->
                    <a target="_blank" href="javascript:void(0);">网站首页</a>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;"><?php echo Yii::$app->user->identity->name; ?></a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;" data-url="/user/change" id="change_psw">修改密码</a>
                        </dd>
                        <dd>
                            <a href="<?php echo \yii\helpers\Url::toRoute(['site/logout']); ?>">退出登录</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <?php $this->beginBody() ?>
    <?= $this->render('leftnav.php') ?>
    <!-- 主体 -->
    <div class="layui-body">
        <!-- 顶部切换卡 -->
        <div class="layui-tab layui-tab-card" lay-filter="top-tab" lay-allowClose="true">
            <ul class="layui-tab-title"></ul>
            <div class="layui-tab-button">
                <a href="javascript:;"><i class="layui-icon">&#x1002;</i></a>
            </div>
            <div class="layui-tab-content">
                <!--                --><?//= $content ?>
            </div>
        </div>
    </div>

    <?php $this->endBody() ?>
    <!--底部-->
    <div class="layui-footer">
        <?php echo WEB_TITLE; ?>后台管理系统 @Copy Right 2016-2018
    </div>
    <!--内容部分 end-->
    <!--底部 end-->
</body>
</html>
<?php $this->endPage() ?>
